﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TVXD23.Web.Models.ViewModel.DepartmentsModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Sữa thông tin
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<link href="../../Content/css/commonCss.css" rel="stylesheet" type="text/css" />
    <h2>Sữa thông tin</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Thông tin</legend>
            
            <div class="editor-label">
               Mã phòng:
            </div>
            <div class="editor-field">
                <%: Model.departmentId %>               
            </div>
            
            <div class="editor-label">
               Tên phòng:
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>
            
            <div class="editor-label">
               Mô tả chi tiết:
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.Description,5,80,null) %>
                <%: Html.ValidationMessageFor(model => model.Description) %>
            </div>
            
            <div class="editor-label">
                Ngày thành lập:
            </div>
            <div class="editor-field">
                <%: Model.DateCreate %>             
            </div>
            
            <p>
                <input type="submit" value="Lưu thông tin" style="height:30px;width:100px;"/>
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Quay về danh sách", "Index") %>
    </div>

</asp:Content>

